package com.alignet.gn.sesion;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
import java.util.Locale;

import javax.faces.bean.SessionScoped;

import org.springframework.stereotype.Component;

import com.alignet.auth.cc.otp.sms.client.AuthenticationTokenResponse;

@Component("container")
@SessionScoped
public class Container {

    private Integer inIduser;
    private String vcLogin;
    private String vcPwd;
    private String vcName;
    private String vcLastname;
    private String vcMaskcard;
    private String vcLanguage;
    private String chState;

    private Integer inIdAcquirer;
    private Integer inIdIssuer;
    private Integer inIdCommerce;
    private Integer inIdCommCurr;
    private short inIdCommExp;
    private String vcNameCommerce;
    private Date date;
    AuthenticationTokenResponse res = null;
    // Temporal
    private Integer inIdCardHolder;
    private String vcNameCardHolder;
    private String vcCardNumber;

    private String keyCipher;
    private String token;
    private String NDC;
    private String cellNumber;
    private Eventos eventos;
    
    
    private String actions;
	private List methods;
	private String totalActions;
	private String denied;
	private String tramaCompleta;
	private String actionsxedit;
	private String trama;
	
	private String vcType;
    
    

    public Eventos getEventos() {
		return eventos;
	}
	public void setEventos(Eventos eventos) {
		this.eventos = eventos;
	}

	
    @Override
    public String toString() {
    	return
    		   "[ inIduser: ".concat(getInIduser()+"").
    	concat(", inIdAcquirer: ").concat(getInIdAcquirer()+"").
    	concat(", inIdCommerce: ").concat(getInIdCommerce()+"").
    	concat(", inIdCardHolder: ").concat(getInIdCardHolder()+"").
    	concat(", inIdIssuer: ").concat(getInIdIssuer()+"").
    	concat(", vcNameCommerce: ").concat(getVcNameCommerce()+"").
    	concat(", vcNameUser: ").concat(getVcName()+"").
    	concat(" ]");
    }
	public String getDate() {
		final SimpleDateFormat formateador = new SimpleDateFormat("EEEE, dd 'de' MMMM 'de' yyyy", new Locale("es_ES"));
		final Date fechaDate = new Date();
		final String fecha = formateador.format(fechaDate);
		return fecha;
	}


	public Integer getInIduser() {
		return inIduser;
	}

	
	public String getVcType() {
		return vcType;
	}
	public void setVcType(String vcType) {
		this.vcType = vcType;
	}
	public void setInIduser(Integer inIduser) {
		this.inIduser = inIduser;
	}

	public String getVcLogin() {
		return vcLogin;
	}

	public void setVcLogin(String vcLogin) {
		this.vcLogin = vcLogin;
	}

	public String getVcPwd() {
		return vcPwd;
	}

	public void setVcPwd(String vcPwd) {
		this.vcPwd = vcPwd;
	}

	public String getVcName() {
		return vcName;
	}

	public void setVcName(String vcName) {
		this.vcName = vcName;
	}

	public String getVcLastname() {
		return vcLastname;
	}

	public void setVcLastname(String vcLastname) {
		this.vcLastname = vcLastname;
	}

	public String getVcMaskcard() {
		return vcMaskcard;
	}

	public void setVcMaskcard(String vcMaskcard) {
		this.vcMaskcard = vcMaskcard;
	}

	public String getVcLanguage() {
		return vcLanguage;
	}

	public void setVcLanguage(String vcLanguage) {
		this.vcLanguage = vcLanguage;
	}

	public String getChState() {
		return chState;
	}

	public void setChState(String chState) {
		this.chState = chState;
	}

	public Integer getInIdAcquirer() {
		return inIdAcquirer;
	}

	public void setInIdAcquirer(Integer inIdAcquirer) {
		this.inIdAcquirer = inIdAcquirer;
	}

	public Integer getInIdIssuer() {
		return inIdIssuer;
	}

	public void setInIdIssuer(Integer inIdIssuer) {
		this.inIdIssuer = inIdIssuer;
	}

	public Integer getInIdCommerce() {
		return inIdCommerce;
	}

	public void setInIdCommerce(Integer inIdCommerce) {
		this.inIdCommerce = inIdCommerce;
	}

	public Integer getInIdCommCurr() {
		return inIdCommCurr;
	}

	public void setInIdCommCurr(Integer inIdCommCurr) {
		this.inIdCommCurr = inIdCommCurr;
	}

	public short getInIdCommExp() {
		return inIdCommExp;
	}

	public void setInIdCommExp(short inIdCommExp) {
		this.inIdCommExp = inIdCommExp;
	}

	public String getVcNameCommerce() {
		return vcNameCommerce;
	}

	public void setVcNameCommerce(String vcNameCommerce) {
		this.vcNameCommerce = vcNameCommerce;
	}


	public void setDate(Date date) {
		this.date = date;
	}

	public Integer getInIdCardHolder() {
		return inIdCardHolder;
	}

	public void setInIdCardHolder(Integer inIdCardHolder) {
		this.inIdCardHolder = inIdCardHolder;
	}

	public String getVcNameCardHolder() {
		return vcNameCardHolder;
	}

	public void setVcNameCardHolder(String vcNameCardHolder) {
		this.vcNameCardHolder = vcNameCardHolder;
	}

	public String getVcCardNumber() {
		return vcCardNumber;
	}

	public void setVcCardNumber(String vcCardNumber) {
		this.vcCardNumber = vcCardNumber;
	}

	public String getKeyCipher() {
		return keyCipher;
	}

	public void setKeyCipher(String keyCipher) {
		this.keyCipher = keyCipher;
	}

	public String getToken() {
		return token;
	}

	public void setToken(String token) {
		this.token = token;
	}

	public String getNDC() {
		return NDC;
	}

	public void setNDC(String nDC) {
		NDC = nDC;
	}

	public String getCellNumber() {
		return cellNumber;
	}

	public void setCellNumber(String cellNumber) {
		this.cellNumber = cellNumber;
	}

	public AuthenticationTokenResponse getRes() {
		return res;
	}

	public void setRes(AuthenticationTokenResponse res) {
		this.res = res;
	}
	public String getActions() {
		return actions;
	}
	public void setActions(String actions) {
		this.actions = actions;
	}
	public List getMethods() {
		return methods;
	}
	public void setMethods(List methods) {
		this.methods = methods;
	}
	public String getTotalActions() {
		return totalActions;
	}
	public void setTotalActions(String totalActions) {
		this.totalActions = totalActions;
	}
	public String getDenied() {
		return denied;
	}
	public void setDenied(String denied) {
		this.denied = denied;
	}
	public String getTramaCompleta() {
		return tramaCompleta;
	}
	public void setTramaCompleta(String tramaCompleta) {
		this.tramaCompleta = tramaCompleta;
	}
	public String getActionsxedit() {
		return actionsxedit;
	}
	public void setActionsxedit(String actionsxedit) {
		this.actionsxedit = actionsxedit;
	}
	public String getTrama() {
		return trama;
	}
	public void setTrama(String trama) {
		this.trama = trama;
	}

}
